import java.util.List;

import org.junit.Test;

import com.motorwaymanage.beans.Admin;
import com.motorwaymanage.beans.ApplyInfo;
import com.motorwaymanage.beans.LocationInfo;
import com.motorwaymanage.biz.IAdminBiz;
import com.motorwaymanage.biz.IApplyInfoBiz;
import com.motorwaymanage.biz.ILocationInfoBiz;
import com.motorwaymanage.impl.AdminBizImpl;
import com.motorwaymanage.impl.ApplyInfoBizImpl;
import com.motorwaymanage.impl.LocationInfoBizImpl;

public class test {
	@Test
	public void test1(){
		IAdminBiz adminBiz=new AdminBizImpl();
		Admin admin=adminBiz.checkAdmin(new Admin(1,"123"));
		System.out.println(admin);
	}
	
	@Test
	public void test2(){
		IApplyInfoBiz applyInfoBiz=new ApplyInfoBizImpl();
		List<ApplyInfo> list=applyInfoBiz.selectApplyInfo(1);
		System.out.println(list);
	}
	
	@Test
	public void test3(){
		ILocationInfoBiz liBiz=new LocationInfoBizImpl();
		System.out.println(liBiz.addLocationInfo(new LocationInfo(0,1,"京哈高速,(220,100)",0)));
	}
	
	@Test
	public void test4(){
		ILocationInfoBiz liBiz=new LocationInfoBizImpl();
		System.out.println(liBiz.selectLaddr());
	}
}
